package dry.example.liteflow;

import com.yomahub.liteflow.core.NodeComponent;
import org.springframework.stereotype.Component;

/**
 * @author zc
 */
@Component("a")
public class ACmp extends NodeComponent {

    @Override
    public void process() {
        //do your business
        UserContext userContext = this.getContextBean(UserContext.class);
        System.out.println(userContext.name);
        userContext.name = "zc-from-a";
        System.out.println("ACmp.process");
    }

}